package com.mmg.spzx.product;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;

// 扫描公共模块下的所有类，不加这句无法扫到公共模块下的类
@ComponentScan(basePackages = {"com.mmg.spzx"})
@EnableCaching // 开启缓存
@SpringBootApplication
public class ProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class, args);
    }
}
